/*******************************************************************************
 * Copyright (c) 2001, 2002 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 ******************************************************************************/
package net.sourceforge.perforce.core.api;

/** This interface can be used to listen to ServerManager changes (ie. new server added, 
  * server removed etc.)
  * 
  * @version $Revision: 130 $
  * @author  <a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  * 
  * TODO: Change name of the interface
  */
public interface IPerforceListener 
{
	// ------------------------------------------------------------------------------------- Methods
	
	/** This method is called to notify the listeners that a new server was added to the list
	  * of perforce servers.
	  * 
	  * @param server the new server.
	  */
	void perforceServerAdded(IPerforceServer server);
	
	/** This method is called to notify the listener that a server has been removed from the list
	  * of perforce servers.
	  *  
	  * @param server the server taht has been removed.
	  */
	void perforceServerRemoved(IPerforceServer server);
}
